package net.caidingke.shepherd.domain.user.finder;

import io.ebean.Finder;
import net.caidingke.shepherd.domain.user.UserRole;
import net.caidingke.shepherd.domain.user.query.QUserRole;

/**
 * @author bowen
 */
public class UserRoleFinder extends Finder<Long, UserRole> {

    /**
     * Construct using the default EbeanServer.
     */
    public UserRoleFinder() {
        super(UserRole.class);
    }

    /**
     * Construct with a given EbeanServer.
     */
    public UserRoleFinder(String serverName) {
        super(UserRole.class, serverName);
    }

    /**
     * Start a new typed query.
     */
    public QUserRole where() {
        return new QUserRole(db());
    }

    /**
     * Start a new document store query.
     */
    public QUserRole text() {
        return new QUserRole(db()).text();
    }

}
